package com.aiex.framework.web.enums;

import com.aiex.framework.core.enums.ErrorCodeInterface;
import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum WebErrorCodeEnum implements ErrorCodeInterface {

    SUCCESS(0, "请求成功"),
    FAIL(400, "请求失败"),
    NOT_FOUND(404, "接口不存在"),
    INTERNAL_SERVER_ERROR(500, "服务器内部错误");

    public final int code;

    public final String msg;


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
